package com.jz.community.modulemine.rechargephone.net;

import com.jz.community.basecomm.constant.Constant;
import com.jz.community.modulemine.money.bean.MoneyInfoBean;
import com.jz.community.modulemine.money.bean.MoneyRechargeBean;
import com.jz.community.modulemine.rechargephone.bean.FareDealBean;
import com.jz.community.modulemine.rechargephone.bean.PhoneFareBean;
import com.jz.community.modulemine.rechargephone.bean.PhonePriceBean;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface PhoneNetApi {
    @GET(Constant.PHONE_FARE_LIST)
    Observable<PhonePriceBean> initPhoneData(@Query("page") int page, @Query("size") int size);

    @GET(Constant.MONEY_INFO)
    Observable<MoneyInfoBean> initMoneyData();

    @POST(Constant.PHONE_FARE)
    Observable<PhoneFareBean> rechargePhone(@Body RequestBody body);

    @GET(Constant.FARE_DEAL_LIST)
    Observable<FareDealBean> initPhoneFare(@Query("page") int page, @Query("size") int size, @Query("status") int status);
}
